package cn.tedu.submarine;

import javax.swing.*;

//水雷潜艇
public class MineSubmarine extends Property implements EnemyLife{
    public MineSubmarine(){
       super(63,19);
    }
    public void move(){
        x+=speed;
    }
    public ImageIcon getImage(){
        return Images.minesubm;
    }

    public Mine shootMine(){
        int x=this.x+this.width;
        int y=this.y-11;
        return new Mine(x,y);
    }
    public int getLife(){
        return 1;
    }
}
